package com.atrix.CinemaView.pojo.dto;

import com.atrix.CinemaView.pojo.FileObj;
import lombok.EqualsAndHashCode;
import lombok.Getter;

@EqualsAndHashCode(callSuper = true)
@Getter
public class VideoStreamData extends FileStreamData {
    private final String name;
    private final String type;
    private final long size;
    
    public VideoStreamData(FileObj obj) {
        super(obj);
        this.name = obj.getName();
        this.type = obj.getType();
        this.size = obj.getData().length();
    }
}
